<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./js/vue.js"></script>
</head>
<body>
    
     <div id="root">
        <div>
            <input type="text" v-model.lazy="msg">
        </div>
        <div>
            <input type="text" v-model.trim.lazy="name">
        </div>
        <div>
            <input type="text" v-model.number="age">
        </div>
        <div>{{msg}}</div>
        <div>虚岁:{{age+1}}</div>
     </div>
     <script>
        new Vue({
            el:'#root',
            data(){
                return{
                   msg:'',
                   name:"",
                   age:0
                }
            }
        })
     </script>
</body>
</html>